package com.wanbing.factory.simplefactory;

import com.wanbing.factory.IJob;

public class JobSimpleFactory {

    public IJob create(Class name) {
        try {
            return (IJob) name.newInstance();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

}
